Set a select property of the Browser.
#include <IE.au3>
_IEPropertySet ( ByRef $o_object, $s_property, $newvalue )
Parameters
$o_object | Object variable of an InternetExplorer.Application |
$s_property | Property selection (see remarks) |
$newvalue | The new value to be set into the Browser Property |
Return Value
Success: | Returns 1 |
Failure: | Returns 0 and sets @ERROR |
@Error: | 0 ($_IEStatus_Success) = No Error |
3 ($_IEStatus_InvalidDataType) = Invalid Data Type | |
4 ($_IEStatus_InvalidObjectType) = Invalid Object Type | |
5 ($_IEStatus_InvalidValue) = Invalid Value | |
@Extended: | Contains invalid parameter number |
Remarks
Further information can be found at MSDN.Property | Description |
"addressbar" | Specifies whether the address bar of the object is visible or hidden. |
"height" | Specifies the height of the Internet Explorer main window. |
"left" | Specifies the screen coordinate of the left edge of the main window of the object. |
"locationname" | Specifies the name of the resource that Internet Explorer is currently displaying. |
"locationurl" | Specifies the URL of the resource that Internet Explorer is currently displaying. |
"menubar" | Specifies a Boolean value that indicates whether the Internet Explorer menu bar is visible. |
"offline" | Specifies a Boolean value that indicates whether the object is currently operating in offline mode. |
"resizable" | Specifies a value that indicates whether the object can be resized. |
"statusbar" | Specifies a value that indicates whether the status bar for the object is visible. |
"statustext" | Specifies the text in the status bar for the object. |
"top" | Specifies the screen coordinate of the top edge of the main window of the object. |
"width" | Specifies the width of the main window for the object. |
Related
_IEPropertyGet
Example
; *******************************************************
; Example 1 - Open a browser with the basic example, check to see if the
; addressbar is visible, if it is not turn it on. Then change
; the text displayed in the statusbar
; *******************************************************
;
#include <IE.au3>
$oIE = _IE_Example ("basic")
If Not _IEPropertyGet ($oIE, "statusbar") Then _IEPropertySet ($oIE, "statusbar", True)
_IEPropertySet ($oIE, "statustext", "Look What I can Do")
Sleep(1000)
_IEPropertySet ($oIE, "statustext", "I can change the status text")